<?php
session_start();
unset($_SESSION);
session_destroy();
session_commit();
setcookie(session_name(), '', time()-100);
setcookie('uName', '', time());
setcookie('uId', '', time());
setcookie('uDep', '', time());
setcookie('role', '', time());
setcookie('uImg', '', time());

echo "
<script>
    alert('账号已退出!')
    window.location.pathname = '/TeacherStuSys/login.php'
</script>
";



